Title: Master equations and applications to spin dynamics