Tried to create a save doc function…not working at all…no idea….