uff, it works again ;)
doDrawPointer and doDrawAxes functions put away from main loop (this is for optimization)