changed unsigned char to char to be compatible with char literals
changed unsigned char to char to be compatible with char literals
moved watchdog functions to separate files