add java version
change refraction angle
add test