New functionality added: getuserinfo, setkey and authorize
Put together both James and my files