Finished opening and basic saving, with a few stylistic changes