added accelerometer function with some functionality, adde camera function with some functionality.