Added comments to describe methods.
Added comments to describe the implementation.