Minor changes, beginning to debug paint.py