Changed everything to be references.

A problem has popped up where particles will randomly have incorrect properties.
Fixed the segmentation fault problem.

Had a scope problem with the created particles.

Was declaring them as objects on the stack in a for loop.
They would be destroyed immediately upon exiting.
Instead changed to allocating on the heap with new;
Moved src up a directory