Improvements in file saving

WriteOut now uses csv.DictWriter()