Made cursor follow edits better.
Improved editing and ironed out many bugs. Added some todos so I can remember what everything will eventually do.