Refactoring and corrections
Create the saves dir if it doesn't exist