Some refactoring and improvement of the compression interface as well as new features for the header (byte order detection)