I was wondering how it would all tie in and make sense.

I think its one of the best series finales I've seen.