fix library path to /optnetcdf/lib;
add structure writing (1)