Replaced prev, cur with previous, current everywhere.

This closes GitHub #308.