It's good to tidy things up and it shows character. It's at least one thing your loved-ones won't have to worry about. Plus it gives you something to do.
As to the will: wouldn't your inheritance automatically (by law) go to your husband and child(ren)?
Before I go I'll go to a notary to write up an ironclad will that cannot possibly be called into question (here a notary is a public servant and as such what he writes down has a special legal status: it basically can't be revoked or nullified unless fraud can be proven) so my parents will get jack shit (I have no children and that's the way our inheritance law works: in that case if you don't have a will your parents will inherit, if they're dead your siblings and so on). What I have will go to those in genuine need so I'll at least have left this sad world in a slightly better shape than how I found it.
My books and music (cd's and dvd's) will go to a few friends. I'm leaning towards no funeral at all: those who actually cared will remember me in their heart and the rest can go F themselves for all I care.
I think you could benefit from reading this:
https://emilkirkegaard.dk/en/?p=1999. They're two letter written by the Roman stoic philosopher Seneca on the subject of suicide. The man himself died most admirably and what he wrote here is pure wisdom. Especially this:
"It is not a question of dying earlier or later but of dying well or ill. And dying well means escape from the danger of living ill."