Euler diagram codes: interpretation and generation