added dump xml option.  modified protect function
added config "examples"