Create main.R

Main functions for AutoReg V2.0 or versions above (if any)