added command for opening tree nodes
implemented close command plus unit tests