Re-brading under "maxopt".
Tidied up examples and cases.