Make parent protected

the parent should only be used inside the docdiff package, it is nothing
public and used only for implementation specific purpose.
Also check parent for matched nodes
Add travis build descriptor