rolled up batch of changes, read extended

Doc intent of recordsFromFile(); Try matching newline, carriage return,
braces for end of record (none of these work);

Fix bug in write_csv(): was repeating the same row many times

Move parse_xxcopy and parse_fields into their own functions.