moved everything into Prime31.StateKit namespace
removed unnecessary ivars that weren't used
require all states to be added before they are used