add cors support, example usage, and a redirect to docs when query param is missing