created Cmake file - Clion project, fixed a few bugs. sockets not working now