Transfer matrices for thin film calculations | T-Matrix method. With code!