Fixed bug in formatter
Fixing how global functions in util.rb are called
Formatter: minor fix and added tests