refactored way chunks are sent to receiver - used handler interface instead of channels. Improved test suite