Fixed a lot of stuff, dunno exactly what, can't remember :)

But it more or less works, only the BLOBanalysis havent been tested.