implementing gz file hadnling in all get* functions;

adding new argument 'delete_corrupt' to read_cds();