Refining: -removed bugs which would change the name of the stored .pdf name
          -made code more consistant
          -fixed driver.c conditional