added some documentation to the script.