Updated documentation, removed console.log