Added CTM lib and examples