Moved cycle to Modern Fortran and added exit statement to Modern Fortran.
Added procedure specification statements to Modern Fortran.