Collection of code used for my master's thesis