Modify phase calculation, and minmax readout
Solved the mote stop problem
Changed some value, and add class deps to makefile