Prepare all necessary files