The EditObj class can now create new objects too

* Also fixed a bug with clearing the buffer in the line editor