Modified main.cpp (Now it switches to points only when curves not available)
FILTER IS VERY UNSTABLE WHEN IT SWITCHES!!!! Need to implement SJ's suggestion