Commented

Commented most of the script to explain how they work