Added javadoc style comments in many headers; minor code cleanup