z1 mote code added to the repo for easier development