Update Midterm.m 2

Some minor fixes I've made.  Still not 100% yet