Added a single method in NSDFWriter to put all the file
attributes (environment) at one go. used the same in hodgkin_huxley
example.