Updated for easier viewing.
Uploading library.  Also simplegui.py has a rough layout.