renamed the script and added documentation.