Added documentation to script and README.md