Fixes for Issue #442
Added java doc for Issue #442