implemented button abstraction.
minor updates on the comments, code cleanup
Merge branch 'master' of github.com:mysmartgrid/hexasense