revised particle filtering

revised the particle filtering code and plotting for this