* added a max to the enum for the tree node states
* use an array for the statenames