Removed unused function from main.
Added fixed delay at beginning of main to allow stabilization time to permit sleep entry on the first CyPmSleep() call.