Add comments to NWPDS.cpp explaining how it works.