Added temp dir and finished install script