Assign pointer to gridfile structure to fi->fh (file handle)
Added non-overwrite on files writing
improved file handles to support creator mode.