New functionality added: getuserinfo, setkey and authorize to James code