20140627update

finish the OPG middle code generate function.finish the work,it's time
to review the course for the  final exame.