Added documentation to broker.js