Various improvements to dualcolor templates. Use template options.

This adds multi process support to c++ version of my templates and also adds some template options.