bugfix

z data elements interpreted as npr macros
bad xml char prevention
improved procedure/element parsing