Add functions and some usefuls scripts. Still some problems with the shell scripts.