add comments to sketch.py and editor.py