added scoreboard and some comments