Documentation Script / MemLeak

Fixed a mem leak...this is an ugly fix...but it should solve some problems with the feral rotaiton on it's way...

Also added the documentation script - see #344 - and warlock comments, jpdots.lua is also commented.
I'll post some explenation on it later...for starters you can switch to the doc dir and run ```python gendoc.py``` and look at the index.html which is generated.
Still a lot work on it - CSS with images would be nice, a TOC also.
You should get an impression on the tags if you look at the changed files, but I'll post a detailed explanation tomorrow ;)