rearranged resource ordering
corrected spec name
got some variable names straight
refactored such that only new nodes get inventorized