seperate module from script to please CPAN and perlcritic

conway didnt know about modulinos, and has some wrong opinions on style.
anyway: perlcritic violations down from 88 to 51
add t/do-perl-critic.pl