using newer, less memory intensive version of code from async in stream cleaning
Merge pull request #3 from Nathan219/refactoring-stream-cleaning

using newer, less memory intensive version of code from async in stream cleaning