Bug fix

fixed a bug, wrote test to insert 10000 particles