Th2 c

fixed the theta problem, need to test the residual "r" and "dx" values.