added namespaces
fixed string rendering (added support for unicode strings)
And other minor fixes
PS droped compatibility with php 4