added echo=TRUE in some r chuncks that was missing