Dortmund beat Freiburg 3-1 in German Bundesliga