enabled PID on the bed
unused gfx commented
additional drawing functions
added some compiler conditions