Bug in extracting parent value, minor style changes

Conflicts:
	DocDB/cgi/AdvancedInstructions.pm