Q-switched nd yag laser machine