slightly randomize write retry wait times
some readability cleanup, give all functions a name
leak debugging using node-memwatch