Sn seems to now be generating a correct matrix. I'm not gonna be able to test until I can plot. God let it work