added bunch of stuff, basically finished the basic flow for a column distribution algorithm