Add API reference. Improve HTML docs.