Added some comments to Sketch and added some code to Tex.