refactor; added install script