Fix replace_mode, factor out Object recording
Fix replace_mode, factor out Object recording

Move a bunch of trace prints before the functions' operation, to make output make more sence
Factor out Object recording and fix replace_mode operation
Comment out bunches of prints

lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice