Added sub-reader logic
Fixed: subreader was not closed.
Merge pull request #12 from sindicetech/cdcr-subreader

Cdcr subreader