Checkpointing. (about to make so potentially dangerous changes.)
Fixed a number of issues discovered from Rev. A boards.
Minor cleanup.