Added signal handling

Once again, committing without testing. Build/run at your own risk!
Added curses output
Merge branch 'mfabel-develop-curses' into mfabel-develop