Created some helper functions for compression function
Corrected folder structure