We should report the motif assignment in export

When we export we should report the current motif assignment. If no motif is
assigned then we give an empty string as the assignment.
Don't really need the motif_id variable

We can just set the resulting dict directly, no need to store the value
temporarily.