Added API documentation to the readme