Changed bash scripts to be executable.
Add function prototypes.