Added return codes to joblauncher. Added logic to add variables to core-site.xml.