Added ability to enter scanpath and output path
Added watchdog functionality