implemented autosave, fixed some intermittent crashing problem, created run, write, and debug mode, etc.
Merge branch 'master' of https://github.com/IanFinlayson/tetra