re-formatted programs, added comments
adding documentation of Midterm rework