Finished peers protocol, need to check and refactor. Next task is to implement client thread.