Create mainFile