fixed 'resource' warnings, one javadoc refined