fixed segfaulting when EOF reached
made sim pause on debug mark
made proc_t variables global. Also fixed bug with sim only running cycle 0