add a few samples, add debug switches

Use debug switch to print out XML and returns in php var dump