Cleaned up code. Updated the file grabber to stream files instead of loading them all at once