Scripts and functions written for my thesis using sglib