Update functions.sh

redoced noice and added chmod to files