add more comments to ex(). bugfix in variable interpolation.