Fixed formatting calculations for tooltip to better fill the window.
Fixed comment markup at the end of a file.
Updated comment markup separators to apply markup in fewer cases.