Added API messages

still work in progress, some minor errors in XSD.