some small bugs fixed, add pid calibration function. Odd files deleted.