Api calls with custom vars
added a general format function to tournaments and players.