Also cleaned up some crufty code, added FILELABELS argument to give caller more precise control over the column labels.