Doing some serious code cleanup. At this point, I have split the Cobb-Douglas functions apart, and everything is still working fine.