cleaned warnings and added quit application to menu bar