Tagged file write and bugs

testHMM.py now does viterbi over the entire test file, and generates a
tagged version of the test file.

However, a bug is causing incorrect tags to be assigned. Need to rewrite
viterbi such that correct tags are assigned, and to add debug statements
to diagnose cause.

TODO: Bugfix