Fixes, removes drawings on realtime, beautifying code