added javadocs to Reducer