mobile sensor + optimization

- Code optimized
- Added functionalities for the mobile sensors