moved isEmpty() notEmpty() safeClose() and getSystemMillis() to new utils class
updated references to functions within utils class