added javadoc to the ScoreFunctionality