Updated util.py/Fixed configuration errors/tested functions