Removed some console.log calls
Call callback instead of returning
Added some documentation