Half commented

I've started commenting the file in detail. I've commented through all the socket setup.