fixed some style, suppressed some warnings from library code, and almost got tests pretty