minor changes in particlefilter.cpp
fixed bug in InputGenerator.cpp (still does not work as expected).