You can find a very simple example of an articulated hierarchical model here:
http://jsbin.com/mopizukowi/edit?html,js,output
Pay attention to the balance of save vs. restore calls, and how they relate to the hierarchical connectivity of the arm (you might want to try “reconnecting” the chain in different ways, by shifting those calls around!)