Slight restructures to make Reproduce.R more general and robust

Also qualifying functions' packages