man studio and the like were really helpful trying to figure out what something did in a piece of code