Working

Added configuration of nf, nth, nx, ny, dist