added ifndef for MAX_NUM_MOLECULES... leaving dynamic allocation for broader integration project.