create file (and minor updates)