Refactored compression of datasets, removed junk.
Merge pull request #1 from nikola/master

Refactored scaling of datasets.