Added (debug) looping support.

'[' To set start of loop, ']' to set end of loop, 'p' to start loop.