Update arch-inst.sh

put the pacman optimisation and bootloader configuration into functions