Fixed uninitialized variable
Added smoothing to map.