Added an reverse id map. Transitioned everything to read in longs versus ints.