Sort:  

Thanks! Tried to make it as easy to understand as possible.
Hopefully it helps people out!