format the file in whitesmith, fix perlcritic issues