updated fitspectra with a few variations on this to do tests - note teststar2 is to test a field and getparams is for a single star - all needs to be cleaned up a lot