Add mainfile