Changed positioning of the functions in util.c
Few formatting changes
removing blank line at the end of the file
removing blank line at the end of the file