Fixed tcp stream, added code to main and started to implement command-executer