Changed optparse groups and minor bugfixes.
Fixed heinous bug for processing list names.

Erroneously assumed wrong functionality of str.rstrip(arg).
It treats the argument as a list of chars, and not as a
complete string that is stripped as a whole.