IMP Error details option to insert in mongo
FIX missing .iteritems()
IMP Externalizad compare function and added tolerance of 1