Minor improvements to densplot, foldbar, twocolor,
Removed debug printfs
Improved version of twocvalidation
Various fixes to gating