Write out results to file

Getting CSV writer functional.  Ultimately will be fault tolerant and more flexible
Core logic

Getting the core logic worked out, which seems to be working properly.  Need to do code cleanup and have this work on a full set provided by a file.  Also need to test edge cases