added precision to the calculation
Fixed pom.xml to use Java 1.6.
Added rJava as requirement to install.txt.