Some minor fixes

Changes: 

- declare unchancheable variables as final
- fixed typo in mMinDistance variable name
- some formatting fixes to conform to tab indendation