Moved input parts to import_data.R.
Added downloading of data when not present
Cleaned up and rerun scripts manually
Ready for submission.