changed to callback function instead of event for export
updated to version 0.0.2