Added some xml-comments to make it clearer what some classes are supposed to do.