Minor bug fixes and improvements 

Removes dead stores and cleans up code base. Also adds visual debugging to keyboard.