make CD default training
remove old comments
fix errors
add tests
six sparsity calculation
parlor hybrid training
make test a function