major clean up, deleted all eyecandy. still lots of repetitions as R and C++ code coexist
major deletion of eyecandy