Added some comments to proxyIntegrate and added new allocate_tunnel function