Fixed some eraser bugs
Also implemented undoing insert