A Study of a NLO matrix element generator for W(gamma) and matching scheme for NLO events and PYTHIA parton shower