Refactor and change savefile to .yaml extension