SIMULATIONS OF A MUON LINAC FOR A NEUTRINO FACTORY