Fixed compiling problem for cython code.
Fixed some bugs in find_equation function. Still more debugging left.
Some minor tweaking.