The hard reset: turn the radio on, wait for the Welcome screen to appear, then immediately press 0, then 1, and follow the instructions on the LCD display to reset the radio.
I'm not sure what you mean by reset the CPU. The CPU is firmware so the most you can do other than upgrade when upgrades are offered are power cycle and/or remove power.
As far as programming, you can use EZ Scan to format and initialize the SD card and/or use the "Restore Factory Defaults" in EZ Scan.