I've made it a little easier to understand for the next version. I hope this will bring you closer to it
.