Added watchdog timer, preliminary curses support