Fixed bug

Data is sent but not printed.
Some shortcut functions for better readability
Child process is stopped after eventsource closed