Import the ProgramOptions class.

(This was developed by myself in other projects.)
Clean up option handling.