Added API documentation and license to the README.