Review completely the javalib

Done.