Added type readers and writers

- fixed tests for splitter
- type readers and writers added but not tested yet