Fixed some bugs with delete, which now works completely. Began work on the editor.