Fixed bug relating to the building of attributes in xml nodes. Use of trim was required to remove spaces. Also put credits for ontology processing in the header.