Started commenting ResMan

Haven't finished and have some TODO's for where I either don't have a
clue, or aren't sure