comments and adjustments to script