Added comments to the methods and the class.