Adding util.rb to project source

Adding lib directory with util.rb in it, since the project is not much dependent on other projects.