incorporating changes from eam_02_branch (pmSourceAdd/Sub, modified API for pmModelAdd, cached models)