Added comments.
Chasing down bug where N and T appear to be reversed.