Fixed minor style issues
Moved UI related code into its own module.
Placed the sensor code into a module