some minor improvements to the NetworkModel and added a sanity check to TreeModel