Fixes and closes #297.  (Also fix a typo in flowlaws.cc)