Hi @kuu_neru,
You might also want to check out this thread:
It was the beginning of where that pattern came from, and might help understand how and why some of the code works.
I hope to come back to this thread and write more later, unless other folks beat me to it and answer you, but wanted to at least get you started!