added mcode to exercises to build midterm.pdf
added midterm.pdf to gitignore