some fixes
better order elelments in xml metadata (mdui);
fix update mudi elements for sp
some othe minor fixes