Fixed the chang time loop end to nt from nt/2 (was actually N) and add end subroutine names.