refactoring to allow PWC to be connected from and connected to (client and server). Also altered the dynamic buffer size for semi-successful automated throttling of ram usage.