added comments
removing console.log used to debug.