Set options from Revfile, and fix a handful of bugs. Progress on #1