Centered window and decomposed main.py