Update formatting, add comments
Update formatting, add comments

This commit updates the formatting where inconsistent and adds many
explanatory comments. This should make the code more readable.

BrowncoatShadow/basin.sh