Removed redundant method and added comments to code.