Added a few comments and fixed a little XML documentation.