sphlib v3.0 - from http://www.saphir2.com/sphlib