Added function for formatting and printing the options list to a filehandle