tidy up example, add export demo
fix export