Reindent
Rename TEMPDIR to OUTPUTDIR
Fix call to latexmk
Refactor getopts
Add option to set output directory
Add option -i to specify input file. Previous behaviour maintained.
Update usage with new options
Changelog
Fix OUTPUT_DIR and refactor