Initial bugfix for LR Controller

Fixed a number of timing/overflow bugs.

Added Serial Gateway project for future modifications.