Merge pull request #2 from johngro/master

My changes to my settings, plus some style fixup.
Add locking to make reverse gear reliable.

Tweaked pulse duration down, added some slop to delay.