Please use one topic for only one question.
I’m not sure why that bit of code was pasted along with your link. Ignore that please