The initial accelerometer pencil moving

commit for initial effort for 2 modes - isTouch and accelerometer