updated a few things in pdf and R/py code