moving getTypeName on to Node interface
changing instances of getClass().getSimpleName() to use the new getTypeName method