added check for invalid pids and bump tufts_models version. Fixes #292