added automatic team score calculation, fixed teams with whitespace