renamed file generateScript to generateBashScript
adding option overwrite, removed trailing space if specified in path, improve doc.