changed javaVersion to enum
updated readme