some fixes and defined markdown renderer