CS 241: a bunch of minor fixes.