Added better conversion for termStatus and directionality flags.  Also added tests.