changed the name of Problem::getStates for Problem::addStates. Added some documentation to Problem