Revert "refactor scrape vars, and fs write outside loop"
Merge pull request #2 from shampine/revert-1-master

Revert "refactor scrape vars, and fs write outside loop"