Fix invalid xml.
Make default version return true.
Add simple main window.
Fix sync.