Fixing missing calc_age function and adding in token parameter to client initialization