To ensure the global vars play nicely in the Portage environment I've renamed a few, and moved a couple more to functions as locals and literal strings. Also improved on the inline documentation and renamed a couple of functions to something more intuitive.
einput.eclass
Description: Binary data