First self-containing public version
complex speed improvements
moved all python code to subfolder