Adding Mid-Term; Fixed

Fixed Mid-Term- added new API.  Please run mid-term.rb