adding updated version of TS_Functions. Corrected spaxel_scale function