added comments to proxy.cpp