fixed problem with pd, added transparency for textures and other small fixes