Multiple Feature modifications

1.) Added a "memory bailout" feature where certain memory intensive
functions will abort gracefully if allocated memory exceeds a certain
limit
2.) Improved the format of the XML output of the script to provide more
details and information, and to "future-proof" the structure.
3.) Consolidated word normalization and removed several unnecessary
functions as a result.