fix some bugs; added config/sumTempl, viewInputData; comp*.id -> nlpd