Error checking fixed... a BadValue to create_window. Don't know what's causing it yet...