Added comments and removed console.log