Modified files for commit v1.0.2. Added various features and
conveniences to nexpect.py and test_nexpect.py