comment
experimental rzFunction2 to try and speed up, discovered that previous rzFunction was wrong
Added licence (GPLv3)