clean up the order of "import" and "def"

- calculate distance correctly
- distance [m] -> [cm]