cleaned up most of reversal learning; still need to squash small bugs