prepInputs function

Download and optionally post-process files