Added javadoc for CGLS-common.
Did some cleanups of unused variables and enums