Some cleanup and comments
Functional mapreduce job that gets the latest state of the world