simpler pauses counting and deleted underscore.m
fixed pausing and unpausing