Refactored motion sensors code
Fixed issue with motion energy when sampling often
Replaced references to unreliable System.currentTimeMillis()
Merge pull request #28 from senseobservationsystems/motion-refactoring

Refactored motion sensors code