Added Javadocs for util methods.