Create api.md

Put API doc into separate file.