refactoring of the binary writer

- eventually this class will write nothing, just proccess.
- making 'develop' branch now all tests pass