Added comments and total scores function