Write exports into subdirectorys

Squashed #470