Fixed some small bugs, courtesy of a user! Also extended some triggers to catch less common errors. Coverage should drop a little, but we'll fix it.