BUG: orientation of shocks in perfect_foresight
ENH: Swapped order of errors in perturbation.py
BUG: Many fixes