Clarified ambiguous variable
Removed unnecessary storage of client's IP address
Created library for securing the network connection