can you explaine me the connection between Nagato and Madara,and who is indeed Madara , also Nagato ;)
Perhaps you mean Tobi (Obito)?
Because Nagato and Madara actually have nothing to do with each other.
Tobi (Obito) is the founder of Akatsuki and gave Nagato the rinnegan and said he should start Akatsuki.
I hope I could help you :)