Restructuring stage 1 (deleting old stuff)
new classdef implementation of caster stuff.