Improvements in the translation table building script.

 -Ready for review and testing.