add compress functionality
Merge pull request #2 from bnaydenov/develop

add compress functionality