set primorial to 61
remove ifdefs for function declarations
change sleep and maxwait for watchdog thread