Extended basic spline implementation and some minor fixes

Hello Thomas,

as I said i will look into higher degree basic spline implementations - here is
what I did so far. If you have time, please have a look - i am willing to work
on it.


Alex