Updates to script to include appropriate commenting