Added smoothing and output of ground profile