add #! and explanatory comments