Cleaned up some unecessary globals - chipAddressMap, pause, timerRunning.
Refactored some names to clarify the difference between the pixel map and the output mapping.
Removed some extraneous includes.