Added furthest distance metric, changed colors, updated ui.
Added input validation on the client-side, fixed some code style problems.