comments, and slight cleanups of RegularExpression() code