Added uninstall script and moved the functions in install.sh to the lib/functions.sh file