read.ctd() improvements and tests