setParent now takes both objects, nodes and selectors (fixes #7)