Add some comments on how to use the Java interface