adjustment terms problems

 * adj.check.order now checks to see if cosine adjustments are of order
 >= 2 for half-normal and hazard-rate functions
 * added a test for the above
 * simplified errors(), en route to removing it
 * added some braces to ambiguous code in fitting procedure