fix tiny bug in randwords, plus some stuff that weren't broke