added some javadoc to summation