Moved parseTree/String method to the Tree class.
Moved methods such that l and keyroots are now properties of the Tree not of each Node.
Some changes to comments.
Started implementing the main loop, about to merge to master.