Update file headers. Adjust migration to detect 3.0 MOD upgrade.
Formatting and other minor fixes.