Here's a http://www.uesp.net/wiki/Skyrim:Console for this sort of thing.
I can tell you a bit about the relationshiprank thing. After opening the console and clicking the NPC, you can enter
player.getrelationshiprank [refID]
and it will return one of nine values as a string. I don't have my notes, but here's what I recall from the top of my thatch:
Rank
-4 = Arch Nemesis
-3 = Enemy
-2 = Foe
-1 = Rival
0 = Acquaintance
1 = Friend
2 = Confidant
3 = Ally (housecarls, for ex.)
4 = Lover (spouse)
The numbers can be used with player.setrelationshiprank refID #