Refactored mode switching a bit. Marks now work properly (though you can only have one). Switched a few
keybindings around, but they won't be finalized until multiple functions can be bound to a single keypress.