Add comprehensive documentation header to script
