Rules for written tax advice finalized