added CoreMotion capture; started work on timer