added source code from http://www.rtvtk.org/~cgribble/research/tangere/tangere-dist-20130729.tgz