fix compilation and style errors
Add text edge output format