Add retrieving of docs and shebang to script