-add distance joint ui
addresses #9
-amending some comments and making syntax a smidge more compact