Convert inline comments to documentation