Adds save file functionality