updated bash script and changed documentation