Bunch of fixes.

Nothing has been crossed off the list yet, but here's a bunch of (mostly cosmetic) fixes. Notes are now in the database, just not sure how you want them displayed.