Added Almost complete functionality to the speciesXMLWriter. Also some testing functionality