I used collapsing-object 0.2 which worked just great.
I wanted to have the ability to add expand all, collapse all and toggle all, which I have done and seems to work just fine.
Not sure how to upload this to anyone, but I have it if someone wants it.