Fixed mixup of internal name and staticname

Fixed logical error on mandatory fields internalname and staticname when creating files. Internalname is now mandatory instead of staticname.