Made changes that should fix the remaining bugs. I check to see if there are any anomalous frames and, in the rare cases where there are, I think an adjustment to the frame head or tail tau variables should suffice.