Rename main to main.R

Please install R 2.15.3 for the dependence package reason.