Better opt validity checking.
Beginning of documentation.