added new defn for equation since amsmath's version respects \nonumber
Another fun code cleanup session with perlcritic