initial full model system functional version with model name and photon number input complete