Added XML comments in the code.