Tidy up functions file formatting