PIVOT-976: Fix Javadoc warnings in Component.java. Also updated some of the doc. Redid the implementation of one loop to use 'for each' construct.