Mostly implemented root and key

Commented several files
Minor rearrangement of the class diagram