XML submission functionality added, closes #5