Save result image and diary logs

Add .gitignore and ignore results/ folder.
Save results in results/
An warning of overwriting debug=0 is also removed.