Lots of changes. Basically all functions amended to ensure analyses is carried out whether the input variable(s) is provided as vector attached to a table - e.d. quote(D$variable) - or as a vector not attached to a table - e.g. quote(variable) -