bugfixing markdown, type tweaks