small cleanup in try-with-resources statement
comment updates