*	A slight refactor to make the code cleaner and better-organized.
*	Some strings were repeating, so they've been factored out.
*	Initialization of menus and toolbars has been factored out into separate functions.