Added missing logic to convert direction to ascii characters.  Added comments to describe conversion process