Code refactoring. Start using an enum for save preferences.
Use new enum.
Added discrete values to enum; now using enum.
General source code and comments cleanup.
Moved items to categories. Pragma descriptions cleanup.
Oops, fixed text editing and post-save bugs.