Greatly refactored help formatting by moving it from optparse to a higher level.