github is now github.com
adding documentation to anchor function
adding api and example in readme