added saving of project tree to xml