Much progress on interfacing with corel painter + other refactorings