Code Generator: Improve Docstrings

Currently, generated docstrings don't include constraints and are not properly formatted (just taken directly from XML)