Add generateFriendURL
Tidy up npcommid inputs
Add trophy data functions