Typo
Global cleanup to fix warnings, dead code, debugging code, out->err conversions, among others