Implement demux and add unit tests for it
Implement demux and add tests
Add README docs