Added backup function; if file already exists when saving, renames to .bak