Added check for save
Merge pull request #35 from tomdepplito/more_debugging

Added check for save