Format code and update API documentation.