updated install.pl regarding new directory structure and added updating functionality