fix regex bug
formatting
multithreading correctness fixes
allow for bad reads
assigning references is already atomic; these do not guard against anything
prevent doubletons
remove peers correctly
remove cruft
fix bugs in test