added comments on few methods and inserted a few methods to make