Reorganized the files. New "functions.sh" file.