Added documentation to the script