Fixed compilation errors, added laplacian function object, changed file structure