Still refactoring reader/writer need to fix chars and longs