Added javadocs for ball functions. Cleaned out some commented code.