Massive Simplification

Existing code was large and confusing for what it did. Thus update
re-thought and simplified the code. Reduced 600 lines to under 100.
Issue exists with Newlines when reading text out of a file.