adds plocks (Proc Block) as descibed in posts. Usage also described, but not coded yet
slight cleanup and rename test case