Corrected name of functions, comments and code in Broker.php