fixed a bug in the CDLExtractor and updated examples