Added API documentation and trimmed the README.