(Reuters) - The board of the charitable trust that controls Hershey Co said on Friday it had reached an in-principle agreement with the Pennsylvania Attorney General's office that would avoid a legal row in exchange for reforms in how it is run.