Added tree data structure, reorganized file structure.