Changed the make today so it replaces the main tex file name appropriately.
Changed the template - we will replace "MAIN_TEX_FILE"