Refactored header files particlesystem.h and grid.h and glCanvas.h