Commented notes on script structure