added "#include <stdexcept>" to PMNS.cpp.