added api doc to readme