Changing function signature to match MKL
Change compile flags
Improving Python interface, tests