Added watchdog for raspberry and various improvements