now storing IP of client

cleaned up comments
passing IP address