updates in depth, motionsensor and improved api

Added depth of objects in drawing, now exact. Bug fix MotionSensor (init
magnetometer)