Extensive changes to singlefirm.m, to make it complient with
counterfactuals
In the process of building counterfactuals into base estimation files