Improved documentation and cleanup() code

Documentation now gives information on parameter usage. Also, cleanup()
can now be called without invoking WSACleanup()