made a tree constructor

now about to find minimal forest of trees with an even
number of vertices
cleaning up input parsing