Normalize quotes, nicer error msg.
Added more comments, cleaned up log messages, extrapolated strings, probably other vaguely annoying things