The code now gets as far as downloading dependent packages. It probably does the rest ok too. Going to make generic and write out references to gbm