perlcritic, perltidy comments optimized, sub folding rewrited, performance optimied, bugs fixed