What is the version of the following sentence with correct punctuation?

Spirulina can be tried against chronic pain such as joint pain If used against nerve pain neuralgia the dose should be doubled
Spirulina can be tried against chronic pain, such as joint pain. If used against nerve pain (neuralgia), the dose should be doubled.