added LKU sim, and LKU config encode class
fixed up sim and LKU encode