First, dirty release. Read the readme.

I know, it's dirty code. There are many lines of code that is unused,
deprecated or just not up to date anymore but the main function should
work.