initial version
restructure csv reading and debugging
added reading from and writing to files
add summary option
add comments