added support for file exporting
merge branch 'develop' for 1.0 release