Fixed up loading, saving and close-all functions. Seems pretty solid so far.