added core code, added accelerometer example code, removed sensors.py code