Fixed trailing comma in multiple file printing

Updated prototypes of printAndDeleteList and output_intermediate_file
to return 1 on success and 0 on failure. Failure occurs when
printAndDeleteList attempts to print a list with no coverage information.
If such a list is encountered, it is not printed.
Also removed comma checking in printAndDeleteNode.