corrected some coding standard in computeScore function