major refactoring, added support for emphasis of ALLCAPS words