made the switch return to the center
added the ability to customize the movement curve of the switch