enh: replaced getPrivateFolder and pass by reference.
Merge branch 'spie_demo_improvements'

* spie_demo_improvements:
  enh: replaced getPrivateFolder and pass by reference.