Fixing race condition, adding comments and disabling all undo/redo

Lines are now sent when drawn instead of layers to prevent race
condition
Comments have been added where missing/lacking
All undo/redo functionality is currently disabled pending a complete
rewrite