Created basic file creation function