Update README.md

Put API doc in api.md.