corrected script version, udpated comments