improve readability of code
Save path to xnormal in preferences
fix up exporter operator call due to API change