Cleanup: Various typos/code changes.

- Simplify clamping in PeripheralController.java
- Fix a typo
- Extended description, etc.