Scripts for my master's thesis titled "On the Lie algebras of BPS states"