Cleaned up code and added comments and more README
Fixed a bug with sensor.py reading from environment variables