Update setup formula, fix minor errors.