Create mainfile