Added viewer API documentation.