updated comments in Java format