Added /blk switch, partly implemented loop

Plus - minor fixes.
Still experimental, refactoring ahead.