cleaned up peer belt driver code and simplified our genric map and reduce code so that it is easier to use in the driver