Rename mainfct to mainfct.R