Major Overhauling

CASTLE i2, using threads and modules to make things flexible and fast