Herm Edwards agrees to contract