Added comments to all methods.