Added additional logging to help pass the time.
Renamed base_words to prev_words and also added logic to clean-up unncessary data sets to prevent memory exhaustion.