Debugging

Added some debugging things.
Don't merge it yet. There is still some tests left at the new menu I had to add. Take a look and another code review is welcome.
Also what is it with those 'p's at the start of the menu items commands?