Version 1.1

Now the XML gets loaded beforehand instead of given with sach function.
Makes more sense.

Added function getArrayElement().
Better error handling.