updated covers code to new interface. it now only accepts R format and produces a list of R format data