When you actually read the latest chapter you can clearly see that madara isn't really a bad person, he just needed a plan to bring peace, no matter what way. Like he said, if shinobi's start telling each other the truth, and express there feelings with one another then there will be peace, and thats whats happening. All the shinobi's are in the same boat, fighting a common enemy, aiming for the same goal ad sharing the same sad, happy whatever moment with one another. He, Madara, actually succeeded, cause you have to think about it, there nothing really to gain from the moon plan but peace and harmony.
That madara is one cheeky rascal i swear....