added all functions except SLEEP an CLRWDT