Added comments to the tk window code