New comments and tests. Added many tests for OptParser and fixed a few things in the process.