Fixed some definitions, figured out correctness for terminal and KLL.