mobile sensor + optimization

- Code optimized
- Added functionalities for the mobile sensors
Merge pull request #2 from ideino/pr/1

mobile sensor + optimization