Main file creation