Mostly working, though it seems that the sum_laplacian function doesnt work