convert to markdown + minor tweaks