Issue 333 ebi xml gen and sub

This docstring still needs Jose's suggested edit