Removed a console.log and added comments to methods