add documentation for unit conversion