bugs corrections for generated files

- There was a confusion between mil and mm.
- x coordinates where mirrored on bottom side.