adds comments to stack viewer and core stack gui functionality