Seperate editor.selecting and editor.selection
Corrrect function annotations
Refactor fixes and improvements to ui