update documentation, remove console.log