fixed all errors in cda document so far and also optimized code