Added function to statistics class. Added lots of javadocs to misc
classes