Added function to loadxml

Not sure if it will work
Merge branch 'dev' into gh-pages