Merge pull request #66 from eranroz/master

fix for RTL: the content direction should be RTL
inserted a warning and fixed a leak
hardened gc