Uses refer to bring in editor
Refactors new-document
Improves rename behaviour