Tight races, surprises mark election