Added clear history to erase to transparent and delete undo and redo history
also removed a stale comment and a debug line that was already commented.