Driver now drives field. Writer remains very bad.
Added writer.cpp. Everything works except no data file is created.