Fix serial communication document formating
Fix issues with socket server on dispatching events.