Added CMOS function, fixed beep(), fixed delay()