Modified the code a little bit

changed the min SDK version to 16 (4.1 jellybean). Instead of general
even manager used Sensor variable for gyroscope and added accelerometer
variable which will add more accuracy after applying complementary
filter