Working version

changed #!/bin/sh to #!/bin/bash. changed