Add rough watchdog file
Fix recursion issue, make script configurable

No more recursion (silly me).
Script is now configurable with more simple variables.
Type casting is done for variables.
Simplified a few things.
Notes improved