updated install script, fixed some errors