added raw explanation formatting functionality to explanation