Export on save

Ready for merge !