Fixed errors with codes
Endpoit class created for clients and servers.
Stable versio 1.0