a few clarification fixes- I moved the functions defined within other functions to their own spot, and made most of the constants a bit more obvious and moved them out so that they don't have to be reinitialized every time.  Also, I removed all of the str() calls so that it can now support unicode text