created Utils.hs to package several utilty functions previously spread between scripts