Added error check and details in interface
This commit adds error check in the format and filter used for compression, triggering an exception if they aren't supported. It also includes details in the interface about the expected value format for the format and filter parameters.