Code Cleanup and Refactoring

Specified variable bit length, updated code to conform with style.
Rewrote led control code, added command to set led pattern

Communication now supports an additional command: set LED pattern.
Currently implemented patterns: all red, all green, all blue, all off,
and the error pattern of a single red LED being on.