Minor changes to stepper (now set period and mode in init) and controller.

Controller has a vestigial extern "C".
Implemented offset STEP high/low using timer match A.

Current duty cycle is 50%, but is configurable.