Remove usage of sp.h

Also, add `sphia_error` for abstracting `sp_error`.

Closes #36.