added getopts to install script