Adding API documentation to the README