Fix settings, and fix date character ghosts.

Some substantial source changes.