Reverted to multichunk decompressor; splitted extract and test function; minor fixes to let it run in Linux