#49 minor refactoring
#50 add an option to put the sidebar on the right
#50 reflect the defaults in the menu items when no window is open