Create functions.sh

functions.sh... move to lib folder later.