Added states

Added states to object, moved behaviours to states. Need to alter debug
routine to list states (IE all values attached to object.states{})