Basic export working

See notes