change mentions of classes to states

some variables were called states and others classes but they referred to the same concept, changed all to states