Cleaner Code

Needs to return data for asynchronous function in TextExtractor