worked out listings to source r file, finished pdf to print