fixed reading/writing of project, added functions for tree traversal