Changed name to reflect purpose
Removed unused imports
Changed event variable
Added margins to text field for easier reading of long documents
Changed search path
Modified output