It looks like a good article.
I like the way you figured out you need to use a modified sinewave and that the peak voltage needs to be the same as the mains. If you use a ready made transformer, you can use 9V-0-9V for 12V input and 18V-0-18V for 24V input.
The only thing I have to pick you up...