Now passes the EditorKit as the main dynamic var, as we can get
the Workspace and ModelManager from here.
Passed EditorKit rather than model manager.
Added lots of documentation.