Added one byte katakana encoding.
small refactor and eliminated much debug output.