fixed a bug in score display, fixed code style inconsistencies and converted from spaces to tabs