clean up code
update header information
change shell to /usr/bin/env bash