Tidied up debugging a bit. Added a .gitignore file to ignore binary output files and ~ back up save files.