Debug drawing

See #36 

Also fixes various issues throughout the engine