modified read data function to use an orderedDict useful when plotting.