All functionality added to Proxy class, should work but not tested, next is to fix main function and fix Socket class