params, particles struct, etc

Need to put particles array on the heap — the stack is too small.