renamed library
added chomp function