add a codestyle file for QT Creator.
- make sure the unit never moves past the target when getting real close
  by changing the speed to the distance to target when target distance
  is closer than speed it will travel in 1 frame.
- format code using code format set in QT