implemented relb.m with iv correction, small demoscript