Implemented storing root dir to file, loading from file; cleaned up structs