still not working
full factorial with categorical works - old code still in file
cleaned up code