Adding file and directory compression
Fix for logging output