added broadcast method to server and updated examples