Modified createC1 for PEP 8 syntax and fewer ifs
Fixed a bug I created in createC1, plus two tweaks for speed.