fixed printf warning messages
Added menu_exit connection
x button closes
Merge pull request #1 from r3dunlop/master

fixed printf warning messages