put sketch files into `prototype` and important structural improve on sketch.py