Fixed directory problem in file store and wrote working code for reading new revs.