renamed controlUtil.h, moved templates and function implementations to cpp file