Now replaces invalid node values with defaults

Node values cannot be blank or duplicated, tree class now validates the
supplied values and replaces invalided ones with default values