Updated flow logic

Updated vars to use the localParams object
Removed unused code
Modified logic for determining src/dest mapping between version files