Added toggle and preferences commands

This allows user to toggle without the keyboard shortcut.