Enclose if statement in braces
Indent switch statement
Move method and update Javadoc
Remove unnecessary comment
Enclose if statement in braces
Rewrite Javadoc for getDistance method
Rename method