generalized version of R code
added the entropy datafiles