added export functionality per issue #70