added util.rb and textdisplay.rb