All functions work and are consistent, still need test for xspec