Added save method, updated writer to create file if not already made