Add comments.

Include comments for go doc for the query types.
Generate README.

Updated readme and added a script to automatically generate the readme
from godoc.