Begin extra dimensions changes. TPL now only works for latest example (xd). Add lots of comments for clarity.