Fixed a lot of bugs. Now the adding particles procedure works properly.