Updated and added maxopt documentation.