Fixes to CMOS code + Date/Time detection, etc.