Adding curve file importer.
Also moving glfinish to end of window painting.