Fixed povray templates
Optimized Basri et al. 2006 implementation.