added diameter function thesaurus
correct boolean units valid values