close menu item

Updated the close menu item so that it functions. More refactoring.
Merge pull request #4 from cusmonaut/HookUpMenuBar

close menu item