added type validator
added XML descriptor