fixed some bugs in the relevant vector code and wrote decent tests
fixed test errors in first kind check
sped up An moment computer test a little