changed chomp() to match Perl deprecated chomp* methods in favor of new slice methods improved unit tests and documentation