reorganised modified_fire with .cpp and .pxd files