added FunnelPlot, added old code for networking code which hasn't been adapted yet