Lots done on this:

* Separated functions addfile into addFile and addFileData.  This was to facilitate direct uploads of data, and direct uploads of xml generated by the class.
* Added a specific debug function debugOutput
changing some of the example files around for easier navigation.
changing the example files again.