update Max GOP size and minor fixes for early return-- request review #59