Added some XML documentation comments and renamed some method names