Work on spmatrix

-- makefile should now support OSX ok
-- first cuts at the matrix class
-- added some stuff to set to make things better