New methods and applications in time-resolved X-ray absorption spectroscopy