added schema inclusion checking, improved toString() methods