added comments that explain about the methods actions