Refactored and corrected Folds and Scans. Included tests.
Merge branch 'master' of https://github.com/tompazourek/Endless