Made writeResults().  Format needs to be determined.