added test file, modified controllers
implemented retrieve, delete, create for tree
implemented update