fixed compiler warning in reader, removed old format stuff from writer.