Inmproved functinality of insertAfter to include root.
PS: git credential.helper working now.