1. Yes. Yes. Though to be complete, I'd probably say "walking alone" modifies "John".
2. No. "Being invaded" modifies "all the country". A participial phrase behaves as an adjective and therefore modifies a noun - just like in the first example.
Interested in Language