Minor fixes in improvements in Java code.
Merge pull request #20 from kmagiera/updates

Minor fixes in improvements in Java code.