Update 0.9.3.3d

Optimized code overall.
Fixed possible memory leaks.