Now works for any number of particles (not only multiple of 256)

and this number should not be pre-defined in source files anymore -- now
it is determined only by input data when loading it. Enjoy :)