Some cleanup / improvements, documentation for splines