fix comments at end of script and add header comments for todo work