BTW Mangle was made by Alex Yatskov "FooSoft"
Then it was forked by proDOOMman
(added some features and optimization).
And now the latest fork/version is by Birua
(bug fixes, new features)
Discussion is here: http://www.the-ebook.org/forum/viewtopic.php?t=16243
, please, look at the latest fork sources. They should be useful.