Add documentation to master_script.py