initial check-in old code.
improve n_a printing
code clear up.. should be OK for running exp.