Updated the documentation in doc.go

I copied the information in the readme file over to the doc.go so that
the documentation for this is available on places like godoc.org