Nonstatic Switch, added grid class
Fixed major bug in particle generation.
merge
big merge