Fix readme to include documentation for API.