ADDED : Documentation of the watchdog architecture
Formatted rest of the code to follow pep8 standard