Added some explanatory comments
Minor styling