Added API documentation to readme