adding printing to controller
comit before adding calibration, fixed some bugs