The abbreviations i.e. and e.g. are not interchangeable – i.e. (id est) means “that is” or “in other words” and e.g. (exempli gratia) means “for example.” Both i.e. and e.g. must have commas after them as well as before them, unless they’re preceded by a dash or a parenthesis.
Note: According to AP, the abbreviation aka – "also known as" and, in this case, not to be confused with above-knee amputation, Alpha Kappa Alpha, the American Kitefliers Association, or the American Kennel Association – is formatted just like that (lowercase, no periods; “no spacing is an exception to Webster's,” it notes).