add API docs and a link to godoc