added code to knit from command line