Added logger and updated the API documentation.