Added compress function
Merge pull request #1 from zebradog/master

Added compress function