Started on implementation of spatial functions. Had to make some unit test fixes. Also, realized API needs to be bettered a little.