Fixed a critical issue
The serversocket wasnt started and some small changes