moved many buttons into menubar, added basic code comments