added api documentation to readme