Well first, punctuation is not usually included in grammar, and the former can be even slipperier than the latter. In this case (as in many), it is more a matter of what communicates most clearly. I think all of yours are OK; I do have opinions (see below), but they are not important:a "by the...