Added code for the XY values, hpwd at decryption. Change the r-value to rpwd.