Update measurement display for large CPM > 10000

- Large values can be displayed correctly (CPM up to 65535)
- Astyle applied on the code for clean indentation.