Recompile if makefile has changed
Add reset and exit chars
Make some variables global, add signal handlers