Summarize genotypes: support for writing summary to a file, write more fields to csv file, code clarity improvements