Changes to outline-mode commans and refactoring of commands