first commit RGenerator.java

add R test script

fixed div and mod operator

modified RGenerator

modified RGenerator
modified RGenerator