added method for generating event from byte, added broadcast