Why were the akatsuki formed?

If you watched Naruto Shippuden where Gaara gets caught, they're pretty much trying to get all the demons, and collecting them for power to create a weapon or something (pretty much said). So, the Akatsuki's main goal is to pretty much take over the world.