added comparison functions to each class, with support for simple wildcards
simplified the way node checking works