Refactored IOHandler. Added compression ratios, decoder uses IOHandler